home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 August / EnterCD 08_2005.iso / dosapps / savepart / doc / en / howto.txt < prev    next >
Encoding:
Text File  |  2005-04-17  |  15.3 KB  |  295 lines

  1.  
  2.                   +----------------------------------------+
  3.                   |                                        |
  4.                   |            Partition saving            |
  5.                   |                                        |
  6.                   |    http://www.partition-saving.com     |
  7.                   |  Copyright (c) 1999-2005 D. Guibouret  |
  8.                   +----------------------------------------+
  9.  
  10.                                      HOWTO
  11.  
  12. Table of contents 
  13. -----------------
  14.  
  15.   1- Preamble 
  16.   2- Some definitions 
  17.   3- Some DOS commands 
  18.      a) Change drive 
  19.      b) List directory contents 
  20.      c) Change directory 
  21.      d) Execute a program 
  22.   4- Preparation 
  23.   5- Saving 
  24.   6- Restoring 
  25.  
  26.  
  27. 1- Preamble 
  28. -----------
  29.  
  30. This is not the Partition Saving manual. This is a short description of how to
  31. use this program in a standard case. To have more details, please read manual 
  32. and FAQ. 
  33.  
  34.  
  35. 2- Some definitions 
  36. -------------------
  37.  
  38. A drive is a partition on a hard disk, a floppy drive or any other device that
  39. allows storing data. With DOS it is identified with a letter between 'A' and 
  40. 'Z' followed with ':'. 
  41.  
  42. A directory (or folder) is an element of a drive that allows grouping files 
  43. (or sub-folders) together. Directory organisation on a drive is called a tree.
  44. A directory inside another directory is called a sub-folder, a directory that 
  45. contains a sub-folder is called parent directory (or upper directory) of 
  46. sub-folder. The upper directory into tree (those that corresponds to drive) is
  47. called root. 
  48.  
  49.  
  50. 3- Some DOS commands 
  51. --------------------
  52.  
  53. DOS is an OS that run with command line. Here are some commands that could be 
  54. useful. All commands given here must be validated with Enter key to be 
  55. executed. 
  56.  
  57.   a) Change drive
  58.  
  59. To change drive, you have to enter "<drive letter>:". 
  60.  
  61. Example: 
  62. --------
  63. To go on floppy drive, you have to enter "A:". 
  64.  
  65.   b) List directory contents
  66.  
  67. To list what a directory contains, you have to enter "dir". If you enter "dir 
  68. <directory name>" you will get contents of <directory name>. If you do not 
  69. give directory name, you will get contents of current directory. If there was 
  70. more files into a directory than it could be displayed on screen, you could 
  71. enter "dir <directory name> /p" to stop command between each screen. 
  72.  
  73. Example: 
  74. --------
  75. "dir savepart". 
  76.  
  77.   c) Change directory
  78.  
  79. To change directory, you have to enter "cd <directory name>". If you do not 
  80. give <directory name>, current directory name will be displayed. If <directory
  81. name> is equal to ".", nothing is done, if it is equal to "..", you go into 
  82. upper directory, if it is equal to "\" you go into root directory. You could 
  83. cross over several directories by separating them with "\". 
  84.  
  85. Example: 
  86. --------
  87. If you have following directory tree: 
  88. C: 
  89. |- savepart 
  90. |  |- doc 
  91. |     |- en 
  92. |     |- fr_ansi 
  93. |     |- fr_ascii 
  94. and you are into C:. If you enter "cd savepart", you go into savepart 
  95. directory (enter "cd" to check this). Then if you enter "cd doc", you go into 
  96. savepart\doc. A faster way to be into this directory from C: is to enter "cd 
  97. savepart\doc". Once you are into savepart\doc, you could enter "cd .." to go 
  98. back into savepart, "cd \" to go into root directory (C:). 
  99.  
  100.   d) Execute a program
  101.  
  102. To execute a program, you have to enter its name. DOS begin to search a file 
  103. "<program name>.bat", "<program name>.com" or "<program name>.exe" into 
  104. current directory, then into all directories given into "PATH" variable (to 
  105. know what contains this variable, enter "path"). You could also give directory
  106. name with program name for the DOS to search it directly into this directory. 
  107.  
  108. Example: 
  109. --------
  110. With considering that you have savepart.exe into savepart directory from 
  111. previous example directory tree and that you are into C:\, you could enter 
  112. "savepart\savepart" to run program, or enter "cd savepart" then "savepart". 
  113.  
  114.  
  115. 4- Preparation 
  116. --------------
  117.  
  118. Here are elements to be done before saving/restoring a partition: 
  119.  
  120.   - To be able to save/restore a partition, you need a boot floppy disk or 
  121. CDROM (or DOS >= 3.3 or Windows 3.x, 9x, Me installed on your hard disk). To 
  122. know how to create one, you could read FAQ Q10. You have to check that 
  123. fdisk.exe, sys.com and format.com are on it, they could be useful.
  124.   - To avoid saving useless things, it is better to remove temporary and 
  125. useless files, .... Swap file could also be moved onto another partition to 
  126. avoid saving it.
  127.   - It could be better to defragment partition before saving it to group all 
  128. data at beginning, moreover if you will restore it onto a smaller partition.
  129.   - If you think to clone a Windows NT/2000/XP partition on another computer, 
  130. you have to prepare Windows to this. For this purpose, please read Microsoft 
  131. site and search for sysprep tool. This is not needed when saving/restoring a 
  132. partition that was not moved on disk. For partition that remains on same 
  133. computer but on another disk using sysprep is also theoretically not needed 
  134. with using options to update registry and BOOTSECT.DOS file (you could have 
  135. also to update the BOOT.INI file).
  136.   - You need a FAT or NTFS partition or a device that could be written by DOS 
  137. to create saving files. Writing CD directly from DOS is rarely available. In 
  138. this case you need to create saved file on hard disk then go back to your 
  139. usual OS to burn CD. For USB devices, it seems that some generic drivers exist
  140. to access them from DOS. If you have several types of partition (like NTFS and
  141. FAT) into a logical partition, you have to put FAT partitions before the 
  142. others (else DOS seems not to be able to find them). 
  143.     If you want to create the saving file on a NTFS partition, you have to 
  144. first create this file on this partition from within Windows with dedicated 
  145. option because program is not able to create files on NTFS partition, only to 
  146. modify and resize them.
  147.   - To be able to find easily which partition to choose, it is better to give 
  148. a name to each partition. This will avoid confusion in case matching between 
  149. partition and corresponding letter is wrong.
  150.   - The part that is better to save is system partition (the one where OS is).
  151. If system is installed on a partition and programs on another, as they could 
  152. be links between them (example: register base and DLL for Windows), you have 
  153. to save both partitions with running program twice. 
  154.     As a good way of doing, it is better to create at least 2 partitions: one 
  155. with OS and programs, second with your data (that do not need restoring in 
  156. case of problem with OS). If it is not the case, before restoring, you will 
  157. have to save your data somewhere to avoid them being erased with an older 
  158. version.
  159.  
  160.  
  161. 5- Saving 
  162. ---------
  163.  
  164. Here are steps to save a partition: 
  165.  
  166.   - You have to begin with choosing "Save an element" info first window.
  167.   - Then you have to choose support. As a general rule, system partition is on
  168. disk number 0, so it is this one that you have to choose. "DOS devices" choice
  169. should be used only if element to save is not on a hard disk or a floppy disk.
  170.   - Third window allows choosing what exactly will be saved. It will not 
  171. appear if you choose a floppy disk on previous window. So you have to choose 
  172. into list what you want: generally it is only system partition. Full save of 
  173. disk is of poor interest (it needs a lot of place), saving each partition 
  174. individually is better. It is the same thing for logical partition: it is 
  175. better to save each partition than the whole extended partition. Saving 
  176. partition table or MBR could be interesting in case one day a virus infects 
  177. your computer (some of them destroy this data).
  178.   - Fourth window allows choosing what is to save on chosen element. This 
  179. window appears only if you choose a partition, a floppy disk or a DOS device 
  180. for which filesystem is known. Saving all sectors does a copy of each sector 
  181. of partition, but it could be restored only on a partition that is identical 
  182. to saved one. Choosing to save occupied only sectors does a copy of each 
  183. occupied sector of partition, this need less space and allows restoring on a 
  184. different partition than saved one. "Element on itself" choice appears for FAT
  185. and NTFS partition only: if you have only one partition, this allows saving 
  186. this partition with creating saving file on it (if you do not choose this 
  187. option, you should not created saving file on saved partition). "Element 
  188. without swap files" choice appears for FAT and NTFS partition only: in this 
  189. case, swap file (win386.swp, hiberfil.sys and pagefile.sys) content is not 
  190. saved (saving them is useless).
  191.   - Following window asks you which directory contains swap files. It appears 
  192. only if you choose option to not save them. As default, program searches into 
  193. root directory and you could give here another directory (you could give root 
  194. directory also if swap files are not elsewhere). As a general rule, swap files
  195. are into root or Windows directory.
  196.   - Following window allows giving saving file name. With DOS, names could not
  197. be more than 8 characters long and could be followed by a 3 characters 
  198. extension (example: "fichier00.part" will be cut into "fichier0.par"). 
  199. Filename could contains alphabetical and numerical characters and '$', '%', 
  200. ''', '-', '_', '@', '~', '`', '!', '(', ')', '{', '}', '^', '#' and '&' 
  201. characters. Files created with this program do not need any specific extension
  202. (do not give them an extension used by another program to avoid confusion). 
  203. Filename should be given into "File" line. As default it contains "*.*" which 
  204. means: list all files into current directory. You could give a simple filename
  205. (in this case it will be created into current directory) or a whole pathname 
  206. (example: "D:\DISK_C.PAR"). Others window elements allow changing drive 
  207. ("Drives") or directory ("Directories") or choosing an existing file 
  208. ("Files"). Unless you choose option to save partition on itself into previous 
  209. window, you should not create a saving file on partition you save. If you 
  210. created a file on a NTFS partition during preparation, you could mount (that 
  211. means make available) that partition with "Mount a partition" button on right 
  212. window to be able to select the partition (first disk then partition) where 
  213. this file is. FAT and ext2/3 partitions could also be mounted, but in 
  214. read-only mode.
  215.   - Following window asks for the size that you do not want the file override.
  216. This is useful as example if you want to burn files on CD to force it to not 
  217. be bigger than CD. In all cases you could not create a file bigger than 2047 
  218. Mb. If saving need more place, program will ask you name of a second file 
  219. where it will continue to save data.
  220.   - Following window asks if you want to compress data. Bigger the chosen 
  221. value is, bigger the time to save is (restoring will less be influenced by 
  222. it). As a general rule, going over level 5 do not win a lot of space in 
  223. comparison to time spent.
  224.   - From this point, saving phase begins. Upper progression bar shows saving 
  225. progress, as lower bar shows filling of file in comparison to maximum size 
  226. defined. If this file is filled up, another one will be asked to you. List 
  227. under contains errors that were found when saving. You could cancel this 
  228. saving, but in this case, you should not use created files.
  229.   - Once saving is ended, program asks you if you want to create a 
  230. configuration file. This file is a text file that allows doing the same saving
  231. or restoring this partition without program asking you anything. If you answer
  232. yes here, filename to create will be asked. 
  233.     If after exiting program, you move saving file (with burning them on CD by
  234. example), you have to modify the configuration file to put new place of saving
  235. file (example: if you create saving file into D:\DISK_C.PAR, configuration 
  236. file into D:\DISK_C.CFG, your CD reader has the F: letter and you want to burn
  237. both file. Before doing it, you should edit configuration file (with a text 
  238. editor) to change "file=D:\DISK_C.PAR" line into "file=F:\DISK_C.PAR" and that
  239. for all "file=..." lines that are into file). It is better to not burn CD with
  240. a too high speed: I got some feedback of people getting problems because they 
  241. were not able to read CD back from DOS (but it appears to be correct from 
  242. Windows) unless they decrease burning speed.
  243.  
  244.  
  245. 6- Restoring 
  246. ------------
  247.  
  248. If when saving you have created the configuration file and you want to do 
  249. restoring on saved partition, you could enter "savepart -r -f <configuration 
  250. filename>" and restoring will be automatic. Warning: in this case no 
  251. confirmation will be asked you before. 
  252. If you do not create configuration file or prefer to do restoring by hand, 
  253. here are all steps: 
  254.  
  255.   - Begin with choosing "Restore an element" option in first window.
  256.   - The second window asks which is the first saving file: you should enter 
  257. its name into "File" line (or double click on its name into "Files" list) with
  258. changing directory or drive before if needed. You must be sure that this file 
  259. is not on partition you want to restore.
  260.   - Depending on file contents and how your partitions are, program gives you 
  261. list of partitions that match the one into saved file. The one that is 
  262. identical to the saved one is marked with an 'X' into Id. column. Note: 
  263. restoring a partition obviously erases the current contents. If you saved 
  264. partition table and restore it, you will loose content of all partitions on 
  265. disk on which restoring is done as this modify disk organisation.
  266.   - A window asks you to confirm your choice.
  267.   - From this point restoring begins. Upper progress bar shows progress for 
  268. file that is currently read, lower one gives progress for the restored 
  269. partition. If saving was done into several files, program will ask you the 
  270. following one when it reaches end of current one.
  271.   - Once restoring is ended, you should not access to restored partition 
  272. before having booted your computer. This is because informations that DOS has 
  273. into memory are no more coherent with partition content and so using it will 
  274. end with data corruption. After that, if you have saved partition on itself, 
  275. saving file could appear on restored partition, in this case you could remove 
  276. it as it is not valid (I speak about the file that could appear on restored 
  277. partition, not those you use to do this restoring which is always correct).
  278.   - If when restoring, you do not have restored partition on the one that was 
  279. saved (either it is not on the same disk or beginning of partition has moved 
  280. on disk) and you have Windows 2000 and XP, you have to update some definitions
  281. into registry and into a file (BOOTSECT.DOS) used in case you have several 
  282. Windows installations (see chapters 11 and 12 of manual).
  283.   - In some cases, if you restore system partition, it could be no more 
  284. bootable. You should begin with checking with fdisk that it is activated. Then
  285. for FAT partition, you have to restore MBR with "fdisk /mbr", then boot sector
  286. with "sys c:" (from boot floppy disk). For ext2fs partition, you have to 
  287. restore boot loader by using install CD used into rescue mode (method to use 
  288. depend on boot loader). For NTFS partition, you have to use fixboot, fixmbr 
  289. and bootcfg commands by using repair console that could be obtained with 
  290. install CD.
  291.  
  292. ------
  293. All trademarks and registered trademarks are ownership of their respective 
  294. holders. 
  295.